package com.oxchinx.order.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by dell on 2018/5/31.
 */
@RestController
@RequestMapping("/envC")
public class EnvController {
    @Value("${env}")
    private String env;

    @GetMapping("/print")
    public String print(){
        System.out.println("env: " + env);
        return env;
    }

    @GetMapping("/print1")
    public String print1(){
        return "xxxx";
    }
}
